﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class animal
    {
        public void log()
        {
            Console.WriteLine("我有腿");
        }
        public void walk()
        {
            Console.WriteLine("我会走路");
        }
        public void shuijiao()
        {
            Console.WriteLine("我会睡觉");
        }
        public virtual void jiao()
        {
            Console.WriteLine("我要叫了");
        }
    }
    class cats : animal
    {
        public void nightsee()
        {
            Console.WriteLine("我晚上能看见东西");
        }
    }
    class bird : animal
    {
        public void fly()
        {
            Console.WriteLine("我会飞");
        }
    }
    class tiger : cats
    {
        public override void jiao()
        {
            base.jiao();
            Console.WriteLine("嗷呜，嗷呜的叫");
        }
    }
    class car : cats
    {
        public override void jiao()
        {
            base.jiao();
            Console.WriteLine("喵喵喵的叫");
        }
    }
    class eagle : bird
    {
        public override void jiao()
        {
            base.jiao();
            Console.WriteLine("叽叽叽的叫");
        }
    }

    class swallow : bird
    {
        public override void jiao()
        {
            base.jiao();
            Console.WriteLine("叼叼叼的叫");
        }
    }
    class PetStore
    {
        public void aaa(animal a)
        {
            a.log();
            a.walk();
            a.shuijiao();
            a.jiao();
            

        }
    }
}
